/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seaworldsoft.xinxifabu.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 *
 * @author sam
 */
@Entity
@Table(name="sys_channel")
public class Article {
      @Id
	@TableGenerator(name = "article", table = "sys_generator", pkColumnName = "key_name", pkColumnValue = "Art_ID", valueColumnName = "key_value", initialValue = 1, allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "article")
      
      private int artId;
      
      /**
       * 文章标题
       */
      @Column(length=150)
      private String artTitle;
      
      /**
       * 文章简介
       */
      @Column(length=400)
      private String artDemo;
      
      /**
       * 文章关键词
       */
      @Column(length=150)
      private String artKeyWord;
      
      /**
       * 文章介绍图
       */
      private String displayImage;
      
      /**
       * 文档内容
       */
      @Lob
      private String artContent;
      
      
      
      
    
}
